#include <stdio.h>

int work_1()
{
  int a = 5, b = 10, result;
  result = (a > b) ? a : b;
  printf("%d\n", result);
}

int work_2()
{
  int num = 100;
  if (num = 1)
  {
    num++;
  }
  printf("num=%d\n", num);
}

int work_3()
{
  int i = 0;
  while (i < 5)
  {
    i++;
    printf("%d ", i);
    i++;
  }
  printf("\n%d\n", i);
}

int work_4()
{
  int num = 100;
  switch (num % 6)
  {
  case 2:
    num += 10;
  case 4:
    num += 20;
  case 6:
    num += 60;
  }
  printf("%d\n", num);
}

int main()
{
  printf("第一题\n");
  work_1();
  printf("第二题\n");
  work_2();
  printf("第三题\n");
  work_3();
  printf("第四题\n");
  work_4();
}